﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DataBaseTree.aspx.cs" Inherits="ArtLand.OA.Project.SystemMgr.DataBaseTree" %>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="MgrTree" />
        <ext:Tree runat="server" ID="MgrTree" AutoScroll="true" ShowBorder="false" ShowHeader="false" OnNodeCommand="MgrTree_NodeCommand">
            <Toolbars>
                <ext:Toolbar ID="Toolbar2" runat="server">
                    <Items>
                        <ext:Button ID="btnTop" Text="添加主类别" Icon="Add" OnClick="btnTop_Click" runat="server">
                        </ext:Button>
                        <ext:Button ID="btnChild" Text="添加子类别" Icon="Add" OnClick="btnChild_Click" runat="server">
                        </ext:Button>
                        <ext:Button ID="btnEdit" Text="修改当前类别" Icon="ApplicationEdit" OnClick="btnEdit_Click" runat="server">
                        </ext:Button>
                        <ext:ToolbarSeparator></ext:ToolbarSeparator>
                        <ext:Button ID="btnDel" Text="删除当前类别" ConfirmText="你确定要删除当前选中类别吗？" ConfirmTarget="Top"
                            Icon="Delete" EnablePostBack="true" OnClick="btnDel_Click" runat="server">
                        </ext:Button>
                    </Items>
                </ext:Toolbar>
            </Toolbars>
        </ext:Tree>
        <ext:Window ID="Window1" Title="编辑" Popup="false" runat="server"
            Target="Self" IsModal="True" Width="400px" Height="300px">
            <Items>
                <ext:SimpleForm ID="SimpleForm1" ShowBorder="false" ShowHeader="false" EnableBackgroundColor="true"
                    AutoScroll="true" BodyPadding="5px" runat="server" EnableCollapse="True">
                    <Toolbars>
                        <ext:Toolbar>
                            <Items>
                                <ext:Button runat="server" Text="保存" ID="btn_NodeSave" Icon="Accept" OnClick="btn_NodeSave_Click"></ext:Button>
                            </Items>
                        </ext:Toolbar>
                    </Toolbars>
                    <Items>
                        <ext:TextBox ID="txt_NodeName" Label="类别名" Required="true" ShowRedStar="true"
                            runat="server" />
                        <ext:TextBox ID="txt_NodeValue" Label="类别值" Required="true" ShowRedStar="true"
                            runat="server" />
                        <ext:DropDownList Label="所属类别" AutoPostBack="false" EnableSimulateTree="true"
                            ShowRedStar="true" runat="server" ID="DrpTopID">
                        </ext:DropDownList>
                        <ext:NumberBox ID="txt_OrderID" Label="排序号" Required="true" ShowRedStar="true" runat="server" />
                        <ext:TextArea runat="server" ID="txt_ReMark" Label="备注"></ext:TextArea>
                        <ext:HiddenField runat="server" ID="hid_ID"></ext:HiddenField>
                    </Items>
                </ext:SimpleForm>
            </Items>
        </ext:Window>
    </form>
</body>
</html>
